package com.kaifamiao.www.demo.Do29.pm;

public class Sup02 {
    int a = 10;
    static int b = 20;
    static {
        b = 21;
        System.out.println("sup02 static{}");
    }
    {
        a = 11;
        System.out.println("sup02 {}");
    }
    public Sup02(){
        System.out.println("Supo2 ()");
        print();  //调用print方法
    }
    public void print(){
        System.out.println("sup02.print()");
        System.out.println("a="+a);
        System.out.println("b="+b);
    }
}
